2019 Sichuan Province Programming Contest G. Game of Primes 题解

您所在的位置:网站首页 g game 2019 Sichuan Province Programming Contest G. Game of Primes 题解

2019 Sichuan Province Programming Contest G. Game of Primes 题解

#2019 Sichuan Province Programming Contest G. Game of Primes 题解| 来源: 网络整理| 查看: 265

获胜条件不一样的博弈

一.题目链接

https://codeforces.com/gym/102821/problem/G

二.题意

T组数据,给出x,y,k,w.w=0 Alice先手; w=1 Bob先手.每一次可以x-1或者y-1.

获胜条件:

x=k或者y=k,bob赢.否则,如果,x和y都是质数,alice赢.

数据范围 : 2



【本文地址】


今日新闻


推荐新闻


    CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3